<?php
//app/Model/User.php

App::uses('AuthComponent', 'Controller/Component');

class Occurrence extends AppModel
{
    public $name = 'Occurrence';

    var $belongsTo = array(
        'Guide' => array(
            'recursive' => 2,
            'className' => 'Guide',
            'foreignKey' => 'guide_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
         ),
        'Individual' => array(
            'recursive' => 2,
            'className' => 'Individual',
            'foreignKey' => 'individual_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
         ),
        'Establishment' => array(
            'recursive' => 2,
            'className' => 'Establishment',
            'foreignKey' => 'establishment_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
         )
    );
    
    public $hasOne = 'Teste';
   
    
}
?>